let timeArr = [
    "03:08",
    "04:52",
    "10:44",
    "02:29",
    "02:16",
    "02:20",
    "08:38",
    "04:31",
    "02:17",
    "10:11",
    "12:25",
    "17:20",
    "05:33",
    "12:24",
    "10:21",
    "08:05",
    "06:40",
    "07:24",
    "06:26",
    "05:22",
    "06:07",
    "10:49",
    "03:05",
    "08:11",
    "03:04",
    "04:37",
    "04:08",
    "02:35",
    "06:27",
    "03:10",
    "03:15",
    "06:34",
    "04:48",
    "07:15",
    "04:34",
    "10:47",
    "06:33",
    "02:53",
    "10:01",
    "05:34",
    "07:09",
    "05:08",
    "02:01",
    "00:54",
    "03:50",
    "04:29",
    "08:57",
    "11:24",
    "02:13",
    "02:56",
    "04:11"
]

let timeSecondsArr = timeArr.map(item => {
    var timeStrArr = item.split(":");
    var number = parseInt(timeStrArr[1]) + parseInt(timeStrArr[0]) * 60;
    return number;
});
let tempArr = []
var reduce = timeSecondsArr.reduce((total, item, index) => {

    if (total < 7200 && total + item > 7200) {
        let obj = {}
        obj.number = index;
        obj.pre = (total / 60)
        obj.next = ((total + item) / 60)
        tempArr.push(obj)
        total = 0;
    } else {
        total = total + item;
    }
    return total;
}, 0);
// console.log(tempArr)
var twoHours1 = timeSecondsArr.slice(0, 16);
var number1 = twoHours1.reduce((total, item) => total + item);
console.log(number1)
